package com.luoqiu.yygh.user.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ConstantWxPropertiesUtil implements InitializingBean {

    @Value("${wx.open.app_id}")
    private String appId;

    @Value("${wx.open.app_secret}")
    private String appSecret;

    @Value("${wx.open.redirect_url}")
    private String redirectUrl;

    @Value("${yygh.basUrl}")
    private String basUrl;

    public static String APPID;

    public static String REDIRECTURL;

    public static String APPSECRET;

    public static String BASEURL;

    @Override
    public void afterPropertiesSet() throws Exception {
        APPID = appId;
        REDIRECTURL = redirectUrl;
        APPSECRET = appSecret;
        BASEURL = basUrl;
    }
}
